<%-- 
    Document   : editAttributes
    Created on : 1.6.2012, 21:42:18
    Author     : tuhar
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Payment</title>
        <link rel="stylesheet" href="<c:url value="/default.css"/>" type="text/css">
    </head>
    <body>
        <div>
        <h1>Platby</h1>
        
        <form action="<c:url value="/EditAttributes?id=${payment.id}"/>"  method="post">
            <table style="margin:0px auto">
                <tr>
                    <th>Odosielateľ*:</th>
                    <td><input type="text" name="bankAcc" value="${payment.bankAcc}" required="required" pattern="[1-9][0-9]{8}/[0-9]{4}" title="bankovní účet např.: 123456789/1234" /></td>
                </tr>
                <tr>
                    <th>Príjemca*:</th>
                    <td><input type="text" name="destinationAcc" value="${payment.destinationAcc}" required="required" pattern="[1-9][0-9]{8}/[0-9]{4}" title="bankovní účet např.: 123456789/1234" /></td>
                </tr>
                <tr>
                    <th>Čiastka*:</th>
                    <td><input type="text" name="amount" value="${payment.amount}" pattern="[0-9]+|[0-9]+\.[0-9]+" required="required" title="částka" /></td>
                </tr>
                <tr>
                    <th>Variabilný symbol:</th>
                    <td><input type="text" name="variableSymbol" value="${payment.variableSymbol}" pattern="[0-9]{0,9}" title="číslo v rozsahu 0-999999999" /></td>
                </tr>
                <tr>
                    <th>Dátum prevodu*:</th>
                    <td><input type="text" name="transferDate" value="${niceDate}" pattern="[0-9]{2}/[0-9]{2}/[0-9]{4}" title="dd/mm/rrrr" required="required" />
                    </td>
                </tr>
                <tr>
                    <th>poznámka:</th>
                    <td><input type="text" name="note" value="${payment.note}" title="poznámka" /></td>
                </tr>
            </table>
            <c:if test="${not empty error}">
                <p class="error">
                    <c:out escapeXml="false" value="${error}"/>
                </p>
            </c:if>
            <p>
                <input type="Submit" value="Upraviť" name="submit" />
               <span class="button"><a href="index.jsp">Zrušiť</a></span>
            </p>
        </form>
        </div>
    </body>
</html>
